package work1;

public abstract class Graph {
    //如果用了private修饰则需要添加get方法为子类提供访问变量的方法
    String color;
    boolean fill;

    public Graph() {
    }

    public Graph(String color, boolean fill) {
        this.color = color;
        this.fill = fill;
    }

    abstract double getArea();
    abstract double getPrimeter();
}
